// +build wireinject

package app

import (
	"embed"

	"gitee.com/xuender/reader/files"
	"gitee.com/xuender/reader/pb"
	"gitee.com/xuender/reader/watch"
	"github.com/google/wire"
)

func InitializeApp(
	config *pb.Config,
	www *embed.FS,
) *App {
	wire.Build(
		NewApp,
		files.NewCtrl,
		files.NewService,
		files.NewArchiveService,
		watch.NewService,
	)
	return &App{}
}
